#ifndef ACCUMULATOR_H
#define ACCUMULATOR_H

class Accumulator {
public:
    void reset() {
        value = 0;
        count = 0;
    }
    virtual void accumulate(double newValue) = 0;

    double value;
    int count;
};

#endif
